package com.tcj.myprogram.memorialday.myview;

import java.lang.reflect.Constructor;

import com.tcj.myprogram.memorialday.BaseActivity;

public class MyViewFactory {
	
	public static MyView getMyViewInstance(BaseActivity baseActivity,String viewName) throws Exception {
		Class c = Class.forName(MyViewFactory.class.getPackage().getName()+"."+viewName);
		Constructor constructor = c.getConstructor(BaseActivity.class);
		return (MyView)constructor.newInstance(baseActivity);
	}
}
